package com.ibeeking.gmc.global.service.common.constants.enums;

/**
 * @Author ibeeking
 * @Description: 租户认证状态
 */
public enum TenantAuditStatusEnum {

    /**
     * 待提交
     */
    SUBMIT_NO(0, "待提交"),

    /**
     * 审核不通过
     */
    AUDIT_NO_PASS(2, "审核不通过"),

    /**
     * 待审核
     */
    AUDIT_NO(4, "待审核"),

    /**
     * 审核通过
     */
    AUDIT_YES(6, "审核通过"),

    ;

    private Integer value;
    private String name;

    TenantAuditStatusEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getName(Integer value) {
        for (TenantAuditStatusEnum ele : values()) {
            if (ele.getValue().equals(value)) {
                return ele.getName();
            }
        }
        return "";
    }
}
